]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
closeDialog: Disable unredirection while showing
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 21 May 2018 19:21:05 +0000 (21:21 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 25 May 2018 14:05:29 +0000 (14:05 +0000)
The dialog won't be visible when unredirection is in place (for example
while a fullscreen window is focused), so disable unredirection while
the dialog is up.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/298

js/ui/closeDialog.js

index aa0b5ceaf8875aef11630cb8127d16beb70dae47..821480a9c329da0dd8cd051cf70764be44c7e3ed 100644 (file)
@@ -97,6 +97,8 @@ var CloseDialog = new Lang.Class({
         if (this._dialog != null)
             return;
 
+        Meta.disable_unredirect_for_screen(global.screen);
+
         this._addWindowEffect();
         this._initDialog();
 
@@ -117,6 +119,8 @@ var CloseDialog = new Lang.Class({
         if (this._dialog == null)
             return;
 
+        Meta.enable_unredirect_for_screen(global.screen);
+
         let dialog = this._dialog;
         this._dialog = null;
         this._removeWindowEffect();